package com.qiaoba.api.system.entity.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户 VO
 *
 * @author ailanyin
 * @date 2023-09-13 20:54:57
 */
@Data
public class SysUserVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Excel(name = "用户ID", width = 25)
    @Schema(description = "用户ID")
    private String userId;

    @Excel(name = "登陆账号", width = 20)
    @Schema(description = "登陆账号")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Excel(name = "用户姓名", width = 20)
    @Schema(description = "用户姓名")
    private String nickname;

    @Schema(description = "部门ID")
    private String deptId;

    @Excel(name = "部门名称", width = 20)
    @Schema(description = "部门名称")
    private String deptName;

    @Excel(name = "性别", replace = {"男_0", "女_1", "未知_2"})
    @Schema(description = "性别 0男1女2未知")
    private String gender;

    @Excel(name = "手机号", width = 20)
    @Schema(description = "手机号")
    private String phone;

    @Excel(name = "邮箱", width = 20)
    @Schema(description = "邮箱")
    private String email;

    @Excel(name = "状态", replace = {"正常_1", "停用_0"})
    @Schema(description = "状态 1正常2禁用")
    private String status;

    @Excel(name = "账号创建时间", width = 30, format = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "账号创建时间")
    private Date createTime;

    @Excel(name = "最后登陆IP", width = 20)
    @Schema(description = "最后登陆IP")
    private String lastLoginIp;

    @Excel(name = "最后登陆时间", width = 30, format = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "最后登陆时间")
    private Date lastLoginTime;

}
